<section class="view-record">
    <div id="ajaxmessagetxt">
        <?php
        $flashMessages = Yii::app()->user->getFlashes();
        if ($flashMessages) {
            foreach($flashMessages as $key => $message) {
                echo '<div class="alert alert-' . $key . ' fade in"><button type="button" class="close" data-dismiss="alert">×</button>' . $message . "</div>\n";
            }
        }
        ?>
    </div>
    <fieldset>
        <legend>
            <?php echo Yii::t('app', 'Your account :').' '. Yii::app()->user->getState('username') ?>
        </legend>
        <?php
        $this->widget('bootstrap.widgets.TbDetailView', array(
            'data'=>$model->attributes,
            'attributes'=>array(
                array('name'=>'username', 'label'=>Yii::t('app', 'Username')),
                array('name'=>'email', 'label'=>Yii::t('app', 'Email')),
                array('name'=>'firstname', 'label'=>Yii::t('app', 'First name')),
                array('name'=>'lastname', 'label'=>Yii::t('app', 'Last name')),
                array('name'=>'about', 'label'=>Yii::t('app', 'About')),
            ),
        ));
        ?>

    </fieldset>
    <br>
    <hr>
    <?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id'=>'horizontalForm',
        'type'=>'horizontal',
    ));?>

    <fieldset>
        <legend>
            <?php echo Yii::t('app', 'Change password') ?>
        </legend>
        <?php echo $form->textFieldRow($model, 'password'); ?>
    </fieldset>
    <div class="form-actions">
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => Yii::t('app', 'Submit'),
            'icon' => 'plus-sign white'
        ));
        ?>
    </div>
    <?php $this->endWidget();?>
</section>